package com.example.cuibo.elementslearning.dummy;

import java.util.List;

/**
 * Created by cuibo on 2017/11/1.
 */

public class Demo_Swap交换 {

    public static void swap(List<String> list,int indx1, int index2){
        String temp = list.get(indx1);
        list.set(indx1,list.get(index2));
    }

}

